
#ifndef _SPRITE_COMPONENT_H_
#define _SPRITE_COMPONENT_H_

#include "Component.h"
#include "Entity.h"
#include "Image.h"
#include "Window.h"

class Sprite : public fe::Component // i know messy as :P
{
public:
    Sprite();
    ~Sprite();

    void render(fe::Window& window);

    void setClip(float x, float y, float w, float h)    { m_image.setClip(x,y,w,h); }
    void setPosition(float x, float y)                  { m_image.setPosition(x,y); }

    fe::RectF getRect()                                 { return m_image.getRect(); }
    fe::RectF getClip()                                 { return m_image.getClip(); }

    fe::Image& getImage()                               { return m_image; }
    void setImage(fe::Image& image)                     { m_image = image; }
private:
    fe::Image m_image;

};


#endif
